package com.csg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;


import com.csg.entity.User;

public interface UserMapper {
	//查询所有商品信息
	public List<User> selectAllUsers();
	//根据用户名密码查询
	public User selectUsers(@Param("username")String username,@Param("password")String password);
	
//	public  User registerByUser(@Param("username")String username,@Param("password")String password);
	public void register(@Param("username")String username,@Param("password")String password,@Param("email")String email);
	
	public int findUser(@Param("email")String email);
	
	public User getUserByUsername(@Param("username")String username);
	
	public int addUser(User user); 
	public int modifyPasswordByUsernameAndEmail(User user);
	public User findUsersByUsername(@Param("username")String username);
}
